package com.whitelist;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;

/**
 * Created by 歪大哥😁 on 2019-10-17.
 */
public class CcbWhiteList {


    public static void main(String[] args) {
        JSONObject j = new JSONObject();

        // 杭州-白名单话费1分购
        JSONArray a9 = new JSONArray();
        j.put("2019059", getJsonArray("3306100"));

        // “你好！同学”周末半价购活动
        JSONArray a17 = new JSONArray();
        j.put("2019116", getJsonArray("2019083", "2019060"));

        // “你好！同学”打卡活动
        JSONArray a18 = new JSONArray();
        j.put("2019115", getJsonArray("2019083", "2019060"));

        System.out.println(j.toJSONString());

    }






    private static JSONArray getJsonArray(String ... ids) {
        JSONArray j = new JSONArray();
        for (String id : ids) {
            j.add(id);
        }
        return j;
    }


}
